package test;

import java.util.Arrays;

public class LetCode_88 {
    public static void main(String[] args) {
        int[] nums1 ={1,2,3,0,0,0};
        int[]nums2={2,5,6};
        int m=3,n=3;
        LetCode_88 letCode_88=new LetCode_88();
        letCode_88.merge(nums1,m,nums2,n);
        for (int num:nums1){
            System.out.println(num);
        }
    }
    public  void merge(int[] nums1, int m, int[] nums2, int n) {
        System.arraycopy(nums2,0,nums1,m,n);
        Arrays.sort(nums1);
    }
}
